package com.dk.service;

import com.dk.pojo.CodeRule;
import com.dk.result.PageResult;
import com.dk.result.Result;

import java.util.List;

public interface CodeRuleService {
    PageResult<CodeRule> getCodeRuleInfo(Integer pageNum, Integer pageSize, String ruleName, String ruleCode, String enableFlag);

    Result addCodeRule(CodeRule codeRule, String token);

    Result updateCodeRule(CodeRule codeRule, String token);

    void deleteCodeRule(Long ruleId);

    List<CodeRule> selectByRuleCode(String ruleCode);
}
